package com.lazy.book.common.event;


import lombok.RequiredArgsConstructor;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;

/**
 *
 * @author lazy
 * @since 2025-09-05
 */
@Component
@RequiredArgsConstructor
public class EventPublisher {

  private final ApplicationEventPublisher applicationEventPublisher;

  public void publish(BaseEvent<?> event) {
    applicationEventPublisher.publishEvent(event);
  }

}